-- GENERATED SPELL FOR [Stonevault Pillager] --


function spell0_24830(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_24830', 611, 1)
end

function Sorts_24830(pUnit, Event)
local choix_sorts_24830 = math.random(0, 0)
if choix_sorts_24830 == 0 then
pUnit:RegisterEvent('spell0_24830', 1, 1)
end
end

function mob24830_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24830', math.random(1500, 3000), 1)
end

function mob24830_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24830_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24830_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24830, 1, 'mob24830_Action')
RegisterUnitEvent(24830, 2, 'mob24830_Leave')
RegisterUnitEvent(24830, 3, 'mob24830_Kill')
RegisterUnitEvent(24830, 4, 'mob24830_Die')
